import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/box_list_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/box_list_entity.g.dart';

@JsonSerializable()
class BoxListEntity {
	@JSONField(name: "List")
	List<BoxListList>? list;

	BoxListEntity();

	factory BoxListEntity.fromJson(Map<String, dynamic> json) => $BoxListEntityFromJson(json);

	Map<String, dynamic> toJson() => $BoxListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class BoxListList {
	String? id;
	String? nameZh;
	String? nameEn;
	String? nameTh;
	int? boxType;
	String? coverUrl;
	int? cycle;
	int? startTime;
	int? endTime;
	int? buyPrice;
	double? price;
	int? buyLimit;
	int? buyMax;
	int? buyNum;
	int? totalBuyNum;
	String? showReturnRate;
	String? showReturnStoneNum;
	int? state;
	int? sortAt;
	int? createdAt;

	BoxListList();

	factory BoxListList.fromJson(Map<String, dynamic> json) => $BoxListListFromJson(json);

	Map<String, dynamic> toJson() => $BoxListListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}